﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace OnlineLearningSystem.Model
{
    /// <summary>
    /// 题
    /// </summary>
    public class Topic:EntityBase
    {
        /// <summary>
        /// 题目
        /// </summary>
        [Display(Name = "题目")]
        public string title { get; set; }

        /// <summary>
        /// 选择题选项
        /// </summary>
        [Display(Name = "选择题选项")]
        public string options { get; set; }

        /// <summary>
        /// 正确答案
        /// </summary>
        [Display(Name = "正确答案")]
        public string trueAnswer { get; set; }

        /// <summary>
        /// 分值
        /// </summary>
        [Display(Name = "分值")]
        public float score { get; set; }

        /// <summary>
        /// 一个题对应一个题型(012)
        /// </summary>
        public virtual int type { get; set; }

        /// <summary>
        /// 一个题型对应一个课程
        /// </summary>
        public virtual Course course { get; set; }
    }
}
